const list = {
  list: [
    {
      type: 'input',
      icon: 'icon-input',
      options: {
        width: {
          value: '',
          unit: '',
        },
        defaultValue: '',
        required: false,
        requiredMessage: '',
        dataType: '',
        dataTypeCheck: false,
        dataTypeMessage: '',
        pattern: '',
        patternCheck: false,
        patternMessage: '',
        validatorCheck: false,
        validator: '',
        placeholder: '',
        customClass: '',
        disabled: false,
        labelWidth: 100,
        isLabelWidth: false,
        hidden: false,
        dataBind: true,
        showPassword: false,
        clearable: false,
        remoteDefaultValue: false,
        remoteDefaultValueSource: '',
        remoteDefaultValueParams: {},
        remoteFunc: 'func_3g4b44pi',
        remoteOption: 'option_3g4b44pi',
        tableColumn: false,
      },
      events: {
        onChange: '',
        onFocus: '',
        onBlur: '',
      },
      name: '单行文本1',
      key: '3g4b44pi',
      model: 'input_3g4b44pi',
      field: 'input_3g4b44pi',
      rules: [],
    },
    {
      type: 'input',
      icon: 'icon-input',
      options: {
        width: {
          value: '',
          unit: '',
        },
        defaultValue: '',
        required: false,
        requiredMessage: '',
        dataType: '',
        dataTypeCheck: false,
        dataTypeMessage: '',
        pattern: '',
        patternCheck: false,
        patternMessage: '',
        validatorCheck: false,
        validator: '',
        placeholder: '',
        customClass: '',
        disabled: false,
        labelWidth: 100,
        isLabelWidth: false,
        hidden: false,
        dataBind: true,
        showPassword: false,
        clearable: false,
        remoteDefaultValue: false,
        remoteDefaultValueSource: '',
        remoteDefaultValueParams: {},
        remoteFunc: 'func_whb8f5ze',
        remoteOption: 'option_whb8f5ze',
        tableColumn: false,
      },
      events: {
        onChange: '',
        onFocus: '',
        onBlur: '',
      },
      name: '单行文本2',
      key: 'whb8f5ze',
      model: 'input_whb8f5ze',
      field: 'input_whb8f5ze',
      rules: [],
    },
    {
      type: 'select',
      icon: 'icon-select',
      options: {
        defaultValue: '',
        multiple: false,
        disabled: false,
        clearable: false,
        placeholder: '',
        required: false,
        requiredMessage: '',
        validatorCheck: false,
        validator: '',
        showLabel: false,
        width: {
          value: '',
          unit: '',
        },
        options: [
          {
            value: 'Option 1',
          },
          {
            value: 'Option 2',
          },
          {
            value: 'Option 3',
          },
        ],
        remote: false,
        remoteType: 'datasource',
        remoteDict: '',
        remoteOption: 'option_w59nzqya',
        filterable: false,
        remoteOptions: [],
        props: {
          value: 'value',
          label: 'label',
        },
        remoteFunc: 'func_w59nzqya',
        customClass: '',
        labelWidth: 100,
        isLabelWidth: false,
        hidden: false,
        dataBind: true,
        associatedComponent: '',
        associatedValue: 'value',
        tableColumn: false,
      },
      events: {
        onChange: '',
        onFocus: '',
        onBlur: '',
      },
      name: '下拉选择3',
      key: 'w59nzqya',
      model: 'select_w59nzqya',
      field: 'select_w59nzqya',
      rules: [],
    },
  ],
  config: {
    labelWidth: 100,
    labelPosition: 'left',
    size: 'default',
    customClass: '',
    ui: 'element',
    layout: 'horizontal',
    width: {
      value: '100',
      unit: '%',
    },
    hideLabel: false,
    hideErrorMessage: false,
    backgroundType: 'color',
    backgroundConfig: {
      backgroundColor: '#ffffff',
      backgroundImage: '',
      backgroundRepeat: 'no-repeat',
      backgroundAttachment: 'local',
      backgroundPositionH: 'center',
      backgroundPositionV: 'center',
      backgroundSize: 'cover',
    },
    eventScript: [
      {
        key: 'mounted',
        name: '初始化加载',
        func: '',
      },
    ],
    params: [],
    eventBehaviers: {
      mounted: null,
    },
    dataSource: [
      {
        description: '查询一个或多个属性在指定时间范围内的值流条目',
        type: 'things',
        key: '5y58ovk5',
        name: '事物_QueryNamedPropertyHistory_5y58ovk5',
        url: '',
        serveInfo: {
          thingCode: 'Measure',
          serviceName: 'QueryNamedPropertyHistory',
        },
        method: 'POST',
        auto: true,
        thingInfo: {
          thingCode: 'Measure',
          serviceName: 'QueryNamedPropertyHistory',
        },
        parameterDefinitions: [
          {
            name: 'propertyNames',
            description: '属性名称',
            baseType: 'INFOTABLE',
            order: 0,
            aspects: {
              dataModel: 'EntityList',
            },
            value: [],
          },
          {
            name: 'maxItems',
            description: '返回条目的最大数量',
            baseType: 'NUMBER',
            order: 1,
            aspects: {
              defaultValue: 500,
            },
            value: ['2', 'input_3g4b44pi'],
          },
          {
            name: 'startDate',
            description: '开始时间',
            baseType: 'DATETIME',
            order: 2,
            aspects: {},
            value: ['2', 'input_whb8f5ze'],
          },
          {
            name: 'endDate',
            description: '结束时间',
            baseType: 'DATETIME',
            order: 3,
            aspects: {},
            value: ['2', 'select_w59nzqya'],
          },
          {
            name: 'oldestFirst',
            description: '按时间递增排序',
            baseType: 'BOOLEAN',
            order: 4,
            aspects: {},
            value: [],
          },
          {
            name: 'query',
            description: '查询定义（过滤，排序和分页）',
            baseType: 'QUERY',
            order: 5,
            aspects: {},
            value: '',
          },
          {
            aspects: {},
            baseType: 'STRING',
            dataModel: null,
            description: '实体描述',
            isPrimaryKey: null,
            name: 'description',
            parentName: 'propertyNames',
            isChild: true,
            value: [],
          },
          {
            aspects: {
              isPrimaryKey: true,
            },
            baseType: 'STRING',
            dataModel: null,
            description: '实体名称',
            isPrimaryKey: true,
            name: 'name',
            parentName: 'propertyNames',
            isChild: true,
            value: [],
          },
        ],
        params: {},
        resultType: [
          {
            name: 'result',
            description: '表记录',
            baseType: 'INFOTABLE',
            order: 0,
            aspects: {},
          },
        ],
        headers: {},
        responseFunc: 'return res;',
        requestFunc: 'return config;',
        fieldDefinitions: {
          description: {
            aspects: {},
            baseType: 'STRING',
            dataModel: null,
            description: '实体描述',
            isPrimaryKey: null,
            name: 'description',
            parentName: 'propertyNames',
            isChild: true,
          },
          name: {
            aspects: {
              isPrimaryKey: true,
            },
            baseType: 'STRING',
            dataModel: null,
            description: '实体名称',
            isPrimaryKey: true,
            name: 'name',
            parentName: 'propertyNames',
            isChild: true,
          },
        },
        args: [],
      },
    ],
    dataSet: [],
  },
}

const dataSource = [
  {
    description: '查询一个或多个属性在指定时间范围内的值流条目',
    type: 'things',
    key: '5y58ovk5',
    name: '事物_QueryNamedPropertyHistory_5y58ovk5',
    url: '',
    serveInfo: {
      thingCode: 'Measure',
      serviceName: 'QueryNamedPropertyHistory',
    },
    method: 'POST',
    auto: true,
    thingInfo: {
      thingCode: 'Measure',
      serviceName: 'QueryNamedPropertyHistory',
    },
    parameterDefinitions: [
      {
        name: 'propertyNames',
        description: '属性名称',
        baseType: 'INFOTABLE',
        order: 0,
        aspects: {
          dataModel: 'EntityList',
        },
        value: [],
      },
      {
        name: 'maxItems',
        description: '返回条目的最大数量',
        baseType: 'NUMBER',
        order: 1,
        aspects: {
          defaultValue: 500,
        },
        value: ['2', 'input_3g4b44pi'],
      },
      {
        name: 'startDate',
        description: '开始时间',
        baseType: 'DATETIME',
        order: 2,
        aspects: {},
        value: ['2', 'input_whb8f5ze'],
      },
      {
        name: 'endDate',
        description: '结束时间',
        baseType: 'DATETIME',
        order: 3,
        aspects: {},
        value: ['2', 'select_w59nzqya'],
      },
      {
        name: 'oldestFirst',
        description: '按时间递增排序',
        baseType: 'BOOLEAN',
        order: 4,
        aspects: {},
        value: [],
      },
      {
        name: 'query',
        description: '查询定义（过滤，排序和分页）',
        baseType: 'QUERY',
        order: 5,
        aspects: {},
        value: '',
      },
      {
        aspects: {},
        baseType: 'STRING',
        dataModel: null,
        description: '实体描述',
        isPrimaryKey: null,
        name: 'description',
        parentName: 'propertyNames',
        isChild: true,
        value: [],
      },
      {
        aspects: {
          isPrimaryKey: true,
        },
        baseType: 'STRING',
        dataModel: null,
        description: '实体名称',
        isPrimaryKey: true,
        name: 'name',
        parentName: 'propertyNames',
        isChild: true,
        value: [],
      },
    ],
    params: {},
    resultType: [
      {
        name: 'result',
        description: '表记录',
        baseType: 'INFOTABLE',
        order: 0,
        aspects: {},
      },
    ],
    headers: {},
    responseFunc: 'return res;',
    requestFunc: 'return config;',
    fieldDefinitions: {
      description: {
        aspects: {},
        baseType: 'STRING',
        dataModel: null,
        description: '实体描述',
        isPrimaryKey: null,
        name: 'description',
        parentName: 'propertyNames',
        isChild: true,
      },
      name: {
        aspects: {
          isPrimaryKey: true,
        },
        baseType: 'STRING',
        dataModel: null,
        description: '实体名称',
        isPrimaryKey: true,
        name: 'name',
        parentName: 'propertyNames',
        isChild: true,
      },
    },
    args: [],
  },
]
